package com.msy.mai.framework.security.core.service;


import com.msy.mai.common.core.entity.domain.model.LoginUser;
import com.msy.mai.framework.satoken.core.utils.LoginHelper;

/**
 * @author Wang
 * @version 1.0
 * @Date 2024/10/22 下午11:26
 * @description  SecurityHolder委托类
 */
public class SecurityHolderDelegate implements SecurityHolder {
    @Override
    public LoginUser getLoginUser() {
        return LoginHelper.getLoginUser();
    }

    @Override
    public Long getLoginUserId() {
        return LoginHelper.getUserId();
    }
}
